<extend name="Layout/index" />

<block name="main">
<div class="container">
<div class="row">
	<form action="<{:U('Admin/index')}>" method="get" >
	<div class="col-lg-4">
		<input type="text" class="form-control input-sm" name="adname" placeholder="请输入要查询的用户名">
	</div>
	<!-- <button type="button" class="btn btn-primary">查询</button> -->
	<input type="submit" class="btn btn-primary btn-xs" value="查询" >
	</form>
	<table class="table table-hover" style="text-align:center;font-size:14px;margin-top:15px;">
		<tr>
			<td class="col-md-1" style="line-height:30px;">用户ID</td>
			<td class="col-md-1">用户名</td>
			<td class="col-md-1">邮箱</td>
			<td class="col-md-1">电话</td>
			<td class="col-md-1">状态</td>
			<td class="col-md-2">上次登录时间</td>
			<td class="col-md-1">上次登录IP</td>
			<td class="col-md-1">登录次数</td>
			<td class="col-md-3">操作</td>
		</tr>
		<volist name="adminlist" id="vo">
		<tr>
			<td><{$vo.aduid}></td>
			<td><{$vo.adname}></td>
			<td><{$vo.ademail}></td>
			<td><{$vo.adtel}></td>
			<td>
			<if condition="$vo['status'] eq 1">
				启用
			<else />
				禁用
			</if>
			</td>
			<td><{$vo.logtime|date='Y-m-d H:i:s',###}></td>
			<td><{$vo.ip}></td>
			<td><{$vo.lognum}></td>
			<td>
			<a href="<{:U('Admin/del',array('aduid'=>$vo['aduid']))}>" class="btn btn-danger btn-xs">删除</a>

			<if condition="$vo['status'] eq '1'">
			<a href="<{:U('Admin/stop',array('aduid'=>$vo['aduid']))}>" class="btn btn-warning btn-xs" id="stop">禁用</a>
			<else /><a href="<{:U('Admin/stop',array('aduid'=>$vo['aduid']))}>" class="btn btn-primary btn-xs" id="stop">启用</a>
			</if>

			<a href="<{:U('Admin/edit',array('aduid'=>$vo['aduid']))}>" class="btn btn-info btn-xs">编辑信息</a>
			<a href="<{:U('Admin/user_role',array('aduid'=>$vo['aduid']))}>" class="btn btn-success btn-xs">分配角色</a>
			</td>
		</tr>
		</volist>
	</table>
<div><{$page}></div>
</div></div>
</block>